//
//  EasyTipAppDelegate.h
//  EasyTip
//
//  Created by Jeffrey Palm on 2/14/09.
//  Copyright Jeffrey Palm 2009. All rights reserved.
//

#import <UIKit/UIKit.h>

@class Category;
@class Criteria;
@class Packet;

@interface EasyTipAppDelegate : NSObject <UIApplicationDelegate> {
    
  UIWindow *window;
  UINavigationController *navigationController;
	Packet *currentPacket;	
	
	@private
	NSMutableDictionary *categories2criterias;
}

@property (nonatomic, retain) IBOutlet	UIWindow								*window;
@property (nonatomic, retain) IBOutlet	UINavigationController	*navigationController;
@property (nonatomic, retain)						Packet									*currentPacket;

+ (EasyTipAppDelegate*)getInstance;

- (void)accumulate:(Category*)cat criterion:(Criteria*)crit;
- (int)totalValue;
- (NSArray*)criterias;

@end

